{% extends 'base_course.html' %}

{% block gcb_page_info %}
  if ('gcbSetPageInfo' in window) {
    gcbSetPageInfo({
      'page_type': 'forum',
    });
  }
{% endblock %}

{% block subtitle %}
  {# I18N: Title of the webpage. #}
  - {{ gettext('Forum') }}
{% endblock subtitle %}

{% block top_content %}

  <div>
    <div class="gcb-aux">
      <div class="gcb-cols">
        <div class="gcb-col-6">
          <iframe id="forum_embed"
            src="javascript:void(0)"
            scrolling="no"
            title="Forum"
            frameborder="0"
            width="900"
            height="700">
          </iframe>

          {% if course_info.course.forum_embed_url %}
            <script type="text/javascript">
              document.getElementById("forum_embed").src =
              "{{course_info.course.forum_embed_url}}"
              + "&showsearch=true&showpopout=true&showtabs=false"
              + "&parenturl=" + encodeURIComponent(window.location.href);
            </script>
          {% endif %}
        </div>
      </div>
    </div>
  </div>

{% endblock %}

{% block main_content %}

{% endblock %}
